const joi = require('joi')
//定义验证规则
const title = joi.string().required()
const cate_id = joi.number().min(1).required();
const content = joi.string().required().allow('')
const state = joi.string().valid('已发布','草稿').required()
exports.add_article_shema = {
    body:{
        title,
        cate_id,
        content,
        state
    }
  
}
//不要乱删